package com.ssy.lingxi.logistics.api.dto.request;

import java.io.Serializable;
import java.util.Objects;

/**
 * 订单拆单运费查询接口参数，订单服务拆单条件，查询结果中原路返回
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-18
 */
public class OrderSeparateFreightRequest implements Serializable {
    private static final long serialVersionUID = 151130414839599928L;

    public OrderSeparateFreightRequest() {
    }

    public OrderSeparateFreightRequest(Long vendorMemberId, Long vendorRoleId, Long supplyMemberId, Long supplyRoleId) {
        this.vendorMemberId = vendorMemberId;
        this.vendorRoleId = vendorRoleId;
        this.supplyMemberId = supplyMemberId;
        this.supplyRoleId = supplyRoleId;
    }

    /**
     * 供应商会员Id
     */
    private Long vendorMemberId;

    /**
     * 供应商角色Id
     */
    private Long vendorRoleId;

    /**
     * 上游供应商会员Id
     */
    private Long supplyMemberId;

    /**
     * 上游供应商角色Id
     */
    private Long supplyRoleId;

    public Long getVendorMemberId() {
        return vendorMemberId;
    }

    public void setVendorMemberId(Long vendorMemberId) {
        this.vendorMemberId = vendorMemberId;
    }

    public Long getVendorRoleId() {
        return vendorRoleId;
    }

    public void setVendorRoleId(Long vendorRoleId) {
        this.vendorRoleId = vendorRoleId;
    }

    public Long getSupplyMemberId() {
        return supplyMemberId;
    }

    public void setSupplyMemberId(Long supplyMemberId) {
        this.supplyMemberId = supplyMemberId;
    }

    public Long getSupplyRoleId() {
        return supplyRoleId;
    }

    public void setSupplyRoleId(Long supplyRoleId) {
        this.supplyRoleId = supplyRoleId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }

        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        OrderSeparateFreightRequest that = (OrderSeparateFreightRequest) o;
        return Objects.equals(vendorMemberId, that.vendorMemberId) &&
                Objects.equals(vendorRoleId, that.vendorRoleId) &&
                Objects.equals(supplyMemberId, that.supplyMemberId) &&
                Objects.equals(supplyRoleId, that.supplyRoleId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(vendorMemberId, vendorRoleId, supplyMemberId, supplyRoleId);
    }
}
